<%if @incumbents.empty?%>
<table border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><%=image_tag "/images/nil.gif"%></td>
		<td class="medgray" valign="center"><strong>对不起，没有筛选出符合条件的样本，点击<%= link_to "重新筛选", :controller=>"report", :action=>"selectincumbent"%>。</strong></td>
	</tr>
</table>
<%else%>
<%= form_tag({:controller=> 'report',:action => 'savereport',:id=>@report.id}, :name=>'customize')%>
<table align="center" width="650" border="0" cellspacing="0"
	cellpadding="0" class="medgray">
	<tr>
		<td colspan="5"><%=image_tag "customizreport_3.gif",:alt=>"定制你的分析报告", :align=>"left" %>
		</td>
	</tr>
	<tr height="20">
		<td colspan="5"></td>
	</tr>
	<tr height="35">
		<td class="lantou" width="100"><strong>样本评价</strong></td>
		<td class="lantou" width="390"><strong>样本信息</strong></td>
		<td class="lantou" width="100" colspan="2"><strong>样本详细</strong></td>
		<td class="lantou" width="60" onClick="selectIt()" style="text-decoration: underline;color: #0099FF;"><strong>全选/取消</strong></td>
	</tr>
	<tr>
		<td colspan="5"><%= render_collection_of_partials "report/select_incumbent", @incumbents%></td>
	</tr>
	<tr valign="middle" height="30">
		<td colspan="3" align="right"><%= submit_tag "保存",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%>
		<%= end_form_tag %></td>
		<td width="45" colspan="1" align="right"><%= button_to "退出",{:controller=> 'index',:action => 'index'},:onclick=>"return confirm('还未保存报告，就要退出吗？');",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%></td>
  		<td colspan="1" align="center"><%= form_tag :controller=> 'report',:action => 'calculatereport',:id=>@report.id%><%= submit_tag "计算",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%><%= end_form_tag %></td>
	</tr>
</table>

<%end %>
